package com.wanlian.error;

public class ErrorCode {

    /**
     * 标识SESSION过期
     */
    public static final int ERROR_SESSION_TAG=10001;



    /**
     * 用户管理模块
     */
    public static final String NO_USER_ID = "用户id不存在";
    public static final String USER_SESSION_NOT_TIME = "用户未登录或登录已过期";

    /**
     * 设备模块
     */
    public static final String DEVICE_CONFIG_EXIST="设备配置已存在";
    public static final String DEVICE_CONFIG_NO_EXIST="设备配置不存在";
    public static final String DEVICE_EXIST="设备已存在";
    public static final String DEVICE_NO_EXIST="设备不存在";
    public static final String DEVICE_DEVICEID_EXIST="设备序列号已存在";
    public static final String DEVICE_DEVICEID_NO_EXIST="设备序列号不存在";
    public static final String DEVICE_NOTFINDID="绑定错误，人员或设备ID不存在";
    public static final String DEVICE_NOTFINDKey="绑定错误，人员或设备ID不存在";
    public static final String DEVICE_NOTFINDUDID="设备ID或人员ID异常";
    public static final String DEVICE_NOTFINDUID="用户ID不存在";
    public static final String DEVICE_HASBIND="该设备已绑定";
    public static final String DEVICE_USER_NOT_EXIST="该用户当前未绑定设备";

    /**
     * 用户管理模块
     */
    public static final String USER_DISABLE = "用户已禁用";
    /**
     * 积分卡
     */
    public static final String CARD_CODE_HASEXIST = "卡号已存在";
    public static final String CARD_NO_ID = "参数异常：卡片id异常";
    public static final String CARD_NO_ENABLE = "卡片不可用：可能已下架";
    public static final String CARD_HAS_USEED = "卡片不可用：卡片已经使用";
    public static final String CARD_PRODUCT_NO_EXIST = "关联商品不存在";
    public static final String CARD_IMPORT_DEF="卡片导入失败，缺少导入条件";

    /**
     * 商品
     */
    public static final String PRODUCT_NAME_HASEXIST = "商品名称已存在";
    public static final String PRODUCT_NO_EXIST = "商品不存在";
    public static final String PRODUCT_ENABLE = "商品已启用";
    public static final String PRODUCT_NO_ENABLE = "商品已禁用";
    /**
     * 积分类型
     */
    public static final String RANK_TYPE_ERROR = "积分类型异常";

    /**
     *消息回馈
     * */

    /**
     * 云盘
     */
    public static final String STORAGE_NOT_EXISTS = "云盘不存在";
    public static final String STORAGE_UPLOAD_DEF = "上传失败，空间容量不足";
    public static final String STORAGE_SIZE_TOO_SMALL = "云盘文件大于现有云盘容量";
    public static final String STORAGE_USER_EXISTS="用户该设备已绑定云盘";
    public static final String STORAGE_SEARCH_DEF="查无此信息";
    public static final String STORAGE_DELETE_DEF="无可删除的信息";
    public static final String STORAGEITEM_ADD_DEF="无法识别的类别";

    /**
     * Register
     */
    public static final String REGISTER_DEFAULT = "注册失败,该账号已存在";

    /**
     * Code
     */
    public static final String CODE_DEFAULT = "验证码错误或验证码已失效";
    public static final String CODE_DEFAULT_NOGET = "用户未获取验证码";
    public static final String CODE_DEFAULT_NOSEND = "验证码发送失败";
    public static final String CODE_DEFAULT_SX = "验证码已失效";

    /**
     * Login
     */
    public static final String LOGIN_DEFAULT = "账号或密码错误";
    public static final String LOGINDEFAUT_ISENABLE = "用户已禁用";
    public static final String LOGIN_USER = "用户未登录或登录已过期";
    public static final String PASSWORD_DEFAULT = "密码不一致";
    public static final String LOGIN_ROLE = "暂无权限";

    /**
     * Banner
     */
    public static final String BANNER_TOP_DEF = "置顶失败";
    public static final String BANNER_ENABLE_DEF = "启用失败";
    public static final String BANNER_DISABLE_DEF = "禁用失败";
    public static final String BANNER_NOT_EXIST="查询不到该banner";
    public static final String BANNER_NOT_TOP="取消置顶失败";
    public static final String BANNER_TOP_ERO="该banner已禁用，无法置顶";

    /**
     * 用户组
     */
    public static final String GROUPAUTHORITY_EDIT_DEF = "编辑失败或无可修改内容";
    public static final String GROUPUSER_EDIT_DEF = "编辑失败或无可修改内容";
    public static final String GROUP_EDIT_DEF = "编辑失败或无可修改内容";
    public static final String USERAUTHORITY_ADD_DEF = "添加失败，参数异常";
}
